package com.zoroki.student_score_system.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zoroki.student_score_system.domain.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author Administrator
* @description 针对表【user】的数据库操作Service
* @createDate 2025-06-30 12:49:22
*/
public interface UserService extends IService<User> {
    List<User> findAll();
    User userLogin(String username,String password);
    User getUserInfo(String username);
    boolean updateUser(User user);
    boolean deleteUserByUsername(String username);
    boolean addUser(User user);

    Page<User> getTeacherByPage(int pageNo, int pageSize, String username);

    Page<User> getStudentByPage(int pageNo, int pageSize, String username);

    Page<User> getAdminByPage(int pageNo, int pageSize, String username);
}
